Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(347)

Issue 130080: [PATCH] Sanitize the JITResolver stub/callsite<->function maps (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 1 month ago by Jeffrey Yasskin
Modified:
15 years, 1 month ago
Reviewers:
CC:
llvm-commits_cs.uiuc.edu
Visibility:
Public.

Description

The JITResolver maps Functions to their canonical stubs and all callsites for lazily-compiled functions to their target Functions. To make Function destruction work, I'm going to need to remove all callsites on destruction, so this patch also adds the reverse mapping for that. There was an incorrect assumption in here that the only stub for a function would be the one caused by needing to lazily compile it, while x86-64 far calls and dlsym-stubs could also cause such stubs, but I didn't look for a test case that the assumption broke. This also adds DenseMapInfo<AssertingVH> so I can use DenseMaps instead of std::maps.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -43 lines) Patch
M include/llvm/Support/ValueHandle.h View 1 chunk +25 lines, -0 lines 0 comments Download
M lib/ExecutionEngine/JIT/JITEmitter.cpp View 9 chunks +99 lines, -43 lines 0 comments Download

Messages

Total messages: 1
Jeffrey Yasskin
15 years, 1 month ago (2009-10-14 23:28:38 UTC) #1
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b