Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(893)

Unified Diff: runtime/vm/class_finalizer_test.cc

Issue 1870343002: - Refactor Symbol allocation to expect a thread parameter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review feedback. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/code_descriptors_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_finalizer_test.cc
diff --git a/runtime/vm/class_finalizer_test.cc b/runtime/vm/class_finalizer_test.cc
index f1c492e25b702369c7dc89d6a530d335c61f0ba2..eb4447cc690fb9dde957378384793ded49d69755 100644
--- a/runtime/vm/class_finalizer_test.cc
+++ b/runtime/vm/class_finalizer_test.cc
@@ -11,7 +11,8 @@ namespace dart {
static RawClass* CreateTestClass(const char* name) {
- const String& class_name = String::Handle(Symbols::New(name));
+ const String& class_name = String::Handle(Symbols::New(Thread::Current(),
+ name));
const Script& script = Script::Handle();
const Class& cls = Class::Handle(
Class::New(class_name, script, TokenPosition::kNoSource));
@@ -74,7 +75,7 @@ TEST_CASE(ClassFinalize_Cycles) {
static RawLibrary* NewLib(const char* url_chars) {
- String& url = String::ZoneHandle(Symbols::New(url_chars));
+ String& url = String::ZoneHandle(Symbols::New(Thread::Current(), url_chars));
return Library::New(url);
}
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/code_descriptors_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698