8199467: Compilation Errors in libinstrument Reentrancy.c with VS2017
authorrriggs
Thu, 22 Mar 2018 09:41:29 -0400
changeset 49279 1d46f84cb930
parent 49278 31c5e0d5f4c3
child 49280 c2a3a2aa2475
8199467: Compilation Errors in libinstrument Reentrancy.c with VS2017 Reviewed-by: sspitsyn, martin
src/java.instrument/share/native/libinstrument/Reentrancy.c
--- a/src/java.instrument/share/native/libinstrument/Reentrancy.c	Thu Mar 22 12:13:08 2018 +0100
+++ b/src/java.instrument/share/native/libinstrument/Reentrancy.c	Thu Mar 22 09:41:29 2018 -0400
@@ -90,7 +90,7 @@
                 jthread         thread,
                 const void *    expected) {
     jvmtiError  error;
-    void *      test = (void *) 0x99999999;
+    void *      test = (void *) 0x99999999UL;
 
     /* now check if we do a fetch we get what we wrote */
     error = (*jvmtienv)->GetThreadLocalStorage(