Changeset 20835 in webkit for trunk/JavaScriptCore
- Timestamp:
- Apr 10, 2007, 3:27:26 PM (18 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r20775 r20835 1 2007-04-10 Geoffrey Garen <[email protected]> 2 3 Reviewed by John Sullivan, Darin Adler. 4 5 Fixed <rdar://problem/5121899> JavaScript garbage collection leads to 6 later crash under Rosetta (should abort or leak instead?) 7 8 Log an error message and crash if the kernel reports failure during GC. 9 We decided to do this instead of just leaking because we don't want people 10 to get the mistaken impression that running in Rosetta is a supported 11 configurtion. 12 13 The CRASH macro will also hook into CrashReporter, which will tell us if 14 many (any?) users run into this issue. 15 16 * kjs/collector.cpp: 17 (KJS::getPlatformThreadRegisters): 18 1 19 2007-04-06 Krzysztof Kowalczyk <[email protected]> 2 20 -
trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r20476 r20835 1390 1390 isa = PBXProject; 1391 1391 buildConfigurationList = 149C277108902AFE008A9EFC /* Build configuration list for PBXProject "JavaScriptCore" */; 1392 compatibilityVersion = "Xcode 2.4"; 1392 1393 hasScannedForEncodings = 1; 1393 1394 mainGroup = 0867D691FE84028FC02AAC07 /* JavaScriptCore */; … … 1395 1396 projectDirPath = ""; 1396 1397 projectRoot = ""; 1398 shouldCheckCompatibility = 1; 1397 1399 targets = ( 1398 1400 932F5BE30822A1C700736975 /* All */, -
trunk/JavaScriptCore/kjs/collector.cpp
r20733 r20835 499 499 #endif 500 500 501 thread_get_state(platformThread, flavor, (thread_state_t)®s, &user_count); 501 kern_return_t result = thread_get_state(platformThread, flavor, (thread_state_t)®s, &user_count); 502 if (result != KERN_SUCCESS) { 503 LOG_ERROR("JavaScript garbage collection failed because thread_get_state returned an error (%d). This is probably the result of running inside Rosetta, which is not supported.", result); 504 CRASH(); 505 } 502 506 return user_count * sizeof(usword_t); 503 507 // end PLATFORM(DARWIN)
Note:
See TracChangeset
for help on using the changeset viewer.