[REFRESH] JDK 9 RFR of JDK-8035279: Clean up internal deprecations in BigInteger

Paul Sandoz paul.sandoz at oracle.com
Wed Feb 26 21:29:38 UTC 2014

On Feb 26, 2014, at 8:35 PM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
>> […]
>>   private int firstNonzeroIntNum() {
>>       int fn = firstNonzeroIntNumPlusTwo - 2;
> I made all suggested changes except the third line below. Why do we test for equality with -3? If the primitive int default value of zero is used, for firstNonzeroIntNumPlusTwo, as it is, then we should still test whether fn equals -2, n'est-ce pas?

Oops, Oui. You can probably tell i was experimenting with PlusThree to take into account a 0 magnitude.

>> --
>> We can revisit and clean things up if/when the JMM is updated.
> Is there an issue for JMM update to which a comment with a link to this thread could be added?

No, there are no issues yet, the discussions are still in flux and nothing concrete has been decided yet. Probably the best way to track as a reminder is to add a new issue for BigInteger to revisit stable fields (JMM) and Unsafe use (Enhanced Volatiles).


More information about the core-libs-dev mailing list