Viewing profile — zanker_swe
zanker_swe
HN member- Joined
- Sun, Jan 07, 2018, 7:54 PM UTC
- HN karma
- 1
- Public activity
- 5 items
- HN profile
- View on Hacker News ↗
About zanker_swe
No profile information was provided.
Recent public activity
-
comment
Comment #16094226
> My answer to that is in general, no. Because '...' can include arbitrary side-effect inducing statements that can't be moved around without affecting the behavior. As the poster …
-
comment
Comment #16094080
Sorry, I meant to write: synchronized(this) { a = AcquireLock(); for(c = 0; c which is inline with what the blog post was proposing. To repeat the blog is a question: for (...) { s…
-
comment
Comment #16093995
>Just looking at your final example, I can't understand how you can say that is unsafe Let me change the example a bit. Say we have two locks aL and bL, that we must always acquire…
-
comment
Comment #16093688
>And it's unsafe? For what definition of safety? Let me try to answer with an example. Let us say, we have original code like this: synchronized(this) { a(); b(); } c(); synchroniz…
-
comment
Comment #16092362
Regarding the question in the 1st topic: ( https://shipilev.net/jvm-anatomy-park/1-lock-coarsening-for-... ) " for (...) { synchronized (obj) { // something } } …could it optimize…