< prev index next >
src/hotspot/share/utilities/globalDefinitions.hpp
Print this page
*** 1256,1265 ****
--- 1256,1273 ----
JAVA_INTEGER_OP(-, java_subtract, jlong, julong)
JAVA_INTEGER_OP(*, java_multiply, jlong, julong)
#undef JAVA_INTEGER_OP
+ #ifdef _WINDOWS
+ // Overloading to match (int, int) to (jint, jint)
+ // because windows jint is type long
+ inline jint java_add(int in1, int in2) {
+ return java_add((jint)in1, (jint)in2);
+ }
+ #endif
+
// Dereference vptr
// All C++ compilers that we know of have the vtbl pointer in the first
// word. If there are exceptions, this function needs to be made compiler
// specific.
static inline void* dereference_vptr(const void* addr) {
< prev index next >