用过Btrace unsafe模式来解答下,unsafe模式能不能创建对象?
Btrace UserGuide(https://kenai.com/projects/btrace/pages/UserGuide )中提到 BTrace Restrictions ,又提到设置unsafe参数就不会检查‘BTrace Restrictions’
BTrace Restrictions
can not create new objects.
can not create new arrays.
can not throw exceptions.
... ...
Supported Arguments
unsafe - do not check for btrace restrictions violations (true/false)
我在btrace shell 脚本中指定了-Dcom.sun.btrace.unsafe=true,但还是不能create new object?
在网上找了两篇文章,都说unsafe管用:
https://blogs.oracle.com/sundararajan/entry/btrace_unsafe_mode
http://ar.newsmth.net/thread-cc7a8616494125.html
到底unsafe模式下能不能创建对象?如果不能,unsafe模式有什么用?