Ticket #35236

参照カウントの型を大きくする

Open Date: 2015-06-15 07:45 Last Update: 2015-06-28 17:02

Reporter:
Owner:
Type:
Status:
Closed
Component:
(None)
MileStone:
(None)
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
Fixed
File:
None
Vote
Score: 0
No votes
0.0% (0/0)
0.0% (0/0)

Details

オーバーフロー防止のため、参照カウントの型を十分に大きな整数型とする。

参照の数はメモリ空間全体のサイズを上回らないので、uintptr_t 型で十分である。uintptr_t 型がない環境では uintmax_t を使わざるを得ないが、超巨大なメモリ空間を持つ環境では理論上 uintmax_t でも足りないということはあり得る (その場合はオーバーフローした時点で諦めて落とす)。

Ticket History (3/3 Histories)

2015-06-15 07:45 Updated by: magicant
  • New Ticket "参照カウントの型を大きくする" created
2015-06-28 16:53 Updated by: magicant
  • Details Updated
  • Owner Update from (None) to magicant
2015-06-28 17:02 Updated by: magicant
  • Details Updated
  • Resolution Update from None to Fixed
  • Status Update from Open to Closed
  • Ticket Close date is changed to 2015-06-28 17:02
Comment

r3313 で修正

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login