mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-04 11:00:45 -08:00
Remove "mps_alert_collection_set" from public interface and remove its implementation and test case. client programs should use the messages interface to find out what the mps is doing.
Copied from Perforce Change: 181119 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
f3f1a4a202
commit
db733f3932
6 changed files with 0 additions and 66 deletions
|
|
@ -46,26 +46,6 @@ static mps_addr_t exactRoots[exactRootsCOUNT];
|
|||
static mps_addr_t ambigRoots[ambigRootsCOUNT];
|
||||
|
||||
|
||||
/* alert -- synchronous alert of collection start/stop */
|
||||
|
||||
static void alertfn(int alertcode, int whycode)
|
||||
{
|
||||
switch(alertcode) {
|
||||
case MPS_ALERT_COLLECTION_BEGIN: {
|
||||
printf("\n^^^^^^ BEGIN (why: %d) ^^^^^^\n", whycode);
|
||||
break;
|
||||
}
|
||||
case MPS_ALERT_COLLECTION_END: {
|
||||
printf("vvvvvv END (why: %d) vvvvvv\n", whycode);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
cdie(0, "unknown alertcode");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* report -- report statistics from any messages */
|
||||
|
||||
static void report(mps_arena_t arena)
|
||||
|
|
@ -326,7 +306,6 @@ int main(int argc, char *argv[])
|
|||
"arena_create");
|
||||
mps_message_type_enable(arena, mps_message_type_gc());
|
||||
mps_message_type_enable(arena, mps_message_type_gc_start());
|
||||
mps_alert_collection_set(arena, &alertfn);
|
||||
die(mps_arena_commit_limit_set(arena, testArenaSIZE), "set limit");
|
||||
die(mps_thread_reg(&thread, arena), "thread_reg");
|
||||
test(arena);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue