Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

JSManagedValue和JscWeakRef 语义不一样#80

breakerrorchen started this conversation inGeneral
Discussion options

JSManagedValue 是用来解决循环应用的,并且保证不会被GC
JscWeakRef 是不是类似c++ weak_ptr, 还是会被GC掉?

You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

这些是实现细节,API上script::Weak 是弱引用,会被GC。

You must be logged in to vote
2 replies
@breakerrorchen
Comment options

但是 JSManagedValue 是不会被GC的

@LanderlYoung
Comment options

I didn't get our topic yet.
If you are worried WeakRef is not implemented properly, you can do code analysis or test. And PR or ISSUE with full context is welcome.
If you want just to discuss JavaScriptCore API usage, please mark it in the title.

Thanks.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
2 participants
@breakerrorchen@LanderlYoung

[8]ページ先頭

©2009-2025 Movatter.jp