Mercurial > hg > graal-jvmci-8
comparison src/os/windows/vm/os_windows.cpp @ 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 | 0b55a78c6be5 |
children | a213d425d87a |
comparison
equal
deleted
inserted
replaced
10269:a9270d9ecb13 | 10271:f9be75d21404 |
---|---|
3305 // 1: Thread is running now | 3305 // 1: Thread is running now |
3306 // >1: Thread is still suspended. | 3306 // >1: Thread is still suspended. |
3307 assert(ret != SYS_THREAD_ERROR, "StartThread failed"); // should propagate back | 3307 assert(ret != SYS_THREAD_ERROR, "StartThread failed"); // should propagate back |
3308 } | 3308 } |
3309 | 3309 |
3310 class HighResolutionInterval { | 3310 class HighResolutionInterval : public CHeapObj<mtThread> { |
3311 // The default timer resolution seems to be 10 milliseconds. | 3311 // The default timer resolution seems to be 10 milliseconds. |
3312 // (Where is this written down?) | 3312 // (Where is this written down?) |
3313 // If someone wants to sleep for only a fraction of the default, | 3313 // If someone wants to sleep for only a fraction of the default, |
3314 // then we set the timer resolution down to 1 millisecond for | 3314 // then we set the timer resolution down to 1 millisecond for |
3315 // the duration of their interval. | 3315 // the duration of their interval. |