Y
Hacker News
new
|
ask
|
show
|
jobs
by
junke
3563 days ago
The behavior is different if a panic occurs, isn't it? But is there any chance that this particular initialization code might panic in the first place?
1 comments
schmichael
3563 days ago
Given the current code and no races against the values being initialized: no, there is no chance for a panic.
link
alpb
3563 days ago
This is not a good assumption. The code will panic, for instance when it can't allocate memory, or runs into signal handling issues.
link