8196884: VS2017 Multiple Type Cast Conversion Compilation Errors

Change the type of symbolic constant badAddressVal and introduce specific casts to fix multiple type cast conversion compilation errors.

Reviewed-by: coleenp, kbarrett
This commit is contained in:
Lois Foltan 2018-02-20 07:46:40 -05:00
parent 17fe1b7ec7
commit b085ebe7b7
7 changed files with 16 additions and 16 deletions

View file

@ -943,8 +943,8 @@ class JavaCallArguments;
// Special constants for debugging
const jint badInt = -3; // generic "bad int" value
const long badAddressVal = -2; // generic "bad address" value
const long badOopVal = -1; // generic "bad oop" value
const intptr_t badAddressVal = -2; // generic "bad address" value
const intptr_t badOopVal = -1; // generic "bad oop" value
const intptr_t badHeapOopVal = (intptr_t) CONST64(0x2BAD4B0BBAADBABE); // value used to zap heap after GC
const int badStackSegVal = 0xCA; // value used to zap stack segments
const int badHandleValue = 0xBC; // value used to zap vm handle area