用过Btrace unsafe模式来解答下,unsafe模式能不能创建对象?

shigang_xing 2013-12-14 06:17:55
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模式有什么用?
...全文
262 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
shigang_xing 2013-12-18
  • 打赏
  • 举报
回复
@BTrace(unsafe=true) https://kenai.com/jira/browse/BTRACE-105

25,980

社区成员

发帖
与我相关
我的任务
社区描述
高性能WEB开发
社区管理员
  • 高性能WEB开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧