From a802f0cedc7b5580d746f46ae62fcf8074ae3c49 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Thu, 2 Mar 2017 04:41:24 -0800 Subject: 3749 --- html/037abandon.cc.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'html/037abandon.cc.html') diff --git a/html/037abandon.cc.html b/html/037abandon.cc.html index 0718a421..93cd0015 100644 --- a/html/037abandon.cc.html +++ b/html/037abandon.cc.html @@ -78,7 +78,7 @@ if ('onhashchange' in window) { 15 16 :(before "End Decrement Refcount(old_address, payload_type, payload_size)") 17 if (old_refcount == 0) { - 18 trace(9999, "mem") << "automatically abandoning " << old_address << end(); + 18 trace(9999, "mem") << "automatically abandoning " << old_address << end(); 19 abandon(old_address, payload_type, payload_size); 20 } 21 @@ -89,7 +89,7 @@ if ('onhashchange' in window) { 26 27 :(code) 28 void abandon(int address, const type_tree* payload_type, int payload_size) { - 29 trace(9999, "abandon") << "updating refcounts inside " << address << ": " << to_string(payload_type) << end(); + 29 trace(9999, "abandon") << "updating refcounts inside " << address << ": " << to_string(payload_type) << end(); 30 //? Total_free += size; 31 //? ++Num_free; 32 //? cerr << "abandon: " << size << '\n'; @@ -115,21 +115,21 @@ if ('onhashchange' in window) { 52 for (int curr = address; curr < address+payload_size; ++curr) 53 put(Memory, curr, 0); 54 // append existing free list to address - 55 trace(9999, "abandon") << "saving " << address << " in free-list of size " << payload_size << end(); + 55 trace(9999, "abandon") << "saving " << address << " in free-list of size " << payload_size << end(); 56 put(Memory, address, get_or_insert(Current_routine->free_list, payload_size)); 57 put(Current_routine->free_list, payload_size, address); 58 } 59 60 :(after "Allocate Special-cases") 61 if (get_or_insert(Current_routine->free_list, size)) { - 62 trace(9999, "abandon") << "picking up space from free-list of size " << size << end(); + 62 trace(9999, "abandon") << "picking up space from free-list of size " << size << end(); 63 int result = get_or_insert(Current_routine->free_list, size); - 64 trace(9999, "mem") << "new alloc from free list: " << result << end(); + 64 trace(9999, "mem") << "new alloc from free list: " << result << end(); 65 put(Current_routine->free_list, size, get_or_insert(Memory, result)); 66 put(Memory, result, 0); 67 for (int curr = result; curr < result+size; ++curr) { 68 if (get_or_insert(Memory, curr) != 0) { - 69 raise << maybe(current_recipe_name()) << "memory in free list was not zeroed out: " << curr << '/' << result << "; somebody wrote to us after free!!!\n" << end(); + 69 raise << maybe(current_recipe_name()) << "memory in free list was not zeroed out: " << curr << '/' << result << "; somebody wrote to us after free!!!\n" << end(); 70 break; // always fatal 71 } 72 } -- cgit 1.4.1-2-gfad0