comparison make/bsd/makefiles/vm.make @ 10271:f9be75d21404

8012902: remove use of global operator new - take 2 Summary: The fix of 8010992, disable use of global operator new and new[] which caused failure on some tests. This takes two of the bugs also add ALLOW_OPERATOR_NEW_USAGE to prevent crash for third party code calling operator new of jvm on certain platforms. Reviewed-by: coleenp, dholmes, zgu Contributed-by: yumin.qi@oracle.com
author minqi
date Tue, 14 May 2013 09:41:12 -0700
parents 8373c19be854
children e484fe2abebd
comparison
equal deleted inserted replaced
10269:a9270d9ecb13 10271:f9be75d21404
142 142
143 JVM = jvm 143 JVM = jvm
144 ifeq ($(OS_VENDOR), Darwin) 144 ifeq ($(OS_VENDOR), Darwin)
145 LIBJVM = lib$(JVM).dylib 145 LIBJVM = lib$(JVM).dylib
146 CFLAGS += -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE 146 CFLAGS += -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
147 ifeq (${VERSION}, $(filter ${VERSION}, debug fastdebug))
148 CFLAGS += -DALLOW_OPERATOR_NEW_USAGE
149 endif
147 else 150 else
148 LIBJVM = lib$(JVM).so 151 LIBJVM = lib$(JVM).so
149 endif 152 endif
150 153
151 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt 154 SPECIAL_PATHS:=adlc c1 gc_implementation opto shark libadt