RFR: Fix compilation errors on Windows

Zhengyu Gu zgu at redhat.com
Tue Dec 19 20:14:20 UTC 2017


Fixed some compilation errors on Windows with VS2013. The compilation 
errors are due to recent atomic implementation changes.

For example:

c:\Users\zhengyu\workspace\shenandoah-jdk10\src\hotspot\shar\gc/shenandoah/shenandoahConcurrentMark.inline.hpp(77) 
: error C2668: 'ShenandoahHeapRegion::increase_live_data_words' : 
ambiguous call to overloaded function
 
c:\Users\zhengyu\workspace\shenandoah-jdk10\src\hotspot\share\gc/shenandoah/shenandoahHeapRegion.hpp(327): 
could be 'void ShenandoahHeapRegion::increase_live_data_words(jint)'
 
c:\Users\zhengyu\workspace\shenandoah-jdk10\src\hotspot\share\gc/shenandoah/shenandoahHeapRegion.hpp(326): 
or       'void ShenandoahHeapRegion::increase_live_data_words(size_t)'
         while trying to match the argument list '(int)'


Webrev: http://cr.openjdk.java.net/~zgu/shenandoah/win_atomic_fix/webrev.00/


Test:

  hotspot_gc_shenandoah on Windows x64 (release + fastdebug)


Thanks,

-Zhengyu


More information about the shenandoah-dev mailing list