Changeset 211684 in webkit for trunk/Source/JavaScriptCore/tools/SigillCrashAnalyzer.cpp
- Timestamp:
- Feb 5, 2017, 11:26:50 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/tools/SigillCrashAnalyzer.cpp
r211603 r211684 242 242 // Use a timeout period of 2 seconds. The client is about to crash, and we don't 243 243 // want to turn the crash into a hang by re-trying the lock for too long. 244 auto expectedLock Token= inspector.lock(Seconds(2));245 if (!expectedLock Token) {246 ASSERT(expectedLock Token.error() == VMInspector::Error::TimedOut);244 auto expectedLocker = inspector.lock(Seconds(2)); 245 if (!expectedLocker) { 246 ASSERT(expectedLocker.error() == VMInspector::Error::TimedOut); 247 247 log("ERROR: Unable to analyze SIGILL. Timed out while waiting to iterate VMs."); 248 248 return; 249 249 } 250 auto lockToken = expectedLockToken.value();250 auto& locker = expectedLocker.value(); 251 251 252 252 void* pc = context.machinePC; 253 auto isInJITMemory = inspector.isValidExecutableMemory(lock Token, pc);253 auto isInJITMemory = inspector.isValidExecutableMemory(locker, pc); 254 254 if (!isInJITMemory) { 255 255 log("ERROR: Timed out: not able to determine if pc %p is in valid JIT executable memory", pc); … … 275 275 #endif 276 276 277 auto expectedCodeBlock = inspector.codeBlockForMachinePC(lock Token, pc);277 auto expectedCodeBlock = inspector.codeBlockForMachinePC(locker, pc); 278 278 if (!expectedCodeBlock) { 279 279 if (expectedCodeBlock.error() == VMInspector::Error::TimedOut)
Note:
See TracChangeset
for help on using the changeset viewer.