Re: RFR 8199843 : Optimize Integer/Long.highestOneBit()

2018-03-24 Thread Andrew Haley
On 03/20/2018 05:20 PM, Ivan Gerasimov wrote: > I tried to run it, but the numbers are non-distinguishable for non-zero > arguments. > And my variant performs slightly better with zero argument. > So, I think it's reasonable to keep the variant with the ternary operator. I am suspicious of this a

Is a peculiar structural modification permissible while iterating a List using the fail-fast iterator?

2018-03-24 Thread kedar mhaswade
I apologize in advance if this has been asked before or if I am making a rookie mistake. Consider the program [1]. In Josh Bloch and Neal Gafter style (I miss those Puzzlers at JavaOnes), may I ask, "What does this program print?" As some of you may have guessed correctly, this program works *as

Re: Is a peculiar structural modification permissible while iterating a List using the fail-fast iterator?

2018-03-24 Thread Martin Buchholz
https://docs.oracle.com/javase/9/docs/api/java/util/ConcurrentModificationException.html On Sat, Mar 24, 2018 at 11:13 AM, kedar mhaswade wrote: > I apologize in advance if this has been asked before or if I am making a > rookie mistake. > > Consider the program [1]. In Josh Bloch and Neal Gaft