From 829fcd8374ea9029119bb37c42aeecf53523995c Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 21 May 2017 14:25:16 -0700 Subject: 3875 --- html/037abandon.cc.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'html/037abandon.cc.html') diff --git a/html/037abandon.cc.html b/html/037abandon.cc.html index c6ba779c..fdcf071d 100644 --- a/html/037abandon.cc.html +++ b/html/037abandon.cc.html @@ -81,7 +81,7 @@ if ('onhashchange' in window) { 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(); - 19 abandon(old_address, payload_type, payload_size); + 19 abandon(old_address, payload_type, payload_size); 20 } 21 22 //: When abandoning addresses we'll save them to a 'free list', segregated by size. @@ -90,7 +90,7 @@ if ('onhashchange' in window) { 25 map<int, int> free_list; 26 27 :(code) - 28 void abandon(int address, const type_tree* payload_type, int payload_size) { + 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(); 30 //? Total_free += size; 31 //? ++Num_free; @@ -117,9 +117,9 @@ 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(); - 56 put(Memory, address, get_or_insert(Current_routine->free_list, payload_size)); - 57 put(Current_routine->free_list, payload_size, address); + 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") -- cgit 1.4.1-2-gfad0