Given the contents of the heap shown on the left, show the new contents of the heap (in the right table) after a call to free(0x400b010) is executed. Your answers should be given as hex values. Note that the address grows from bottom up. Assume that the allocator uses immediate coalescing, that is, adjacent free blocks are merged immediately each time a block is freed. Address 0x400b028 0x00000012 Address 0x400b028 0x400b024 0x400b611c 0x400b024 0x400b611c 0x400b020 0x400b512c 0x400b020 0x400b512c 0x400b01c 0x00000012 0x400b01c 0x400b018 0x00000013 0x400b018 0x400b014 0x400b511c 0x400b014 0x400b511c 0x400b010 0x400b601c 0x400b010 0x400b601c 0x400b00c 0x00000013 0x400b00c 0x400b008 0x00000013 0x400b008 0x400b004 0x400b601c 0x400b004 0x400b601c 0x400b000 0x400b511c 0x400b000 0x400b511c 0x400affc 0x00000013 0x400affc
Given the contents of the heap shown on the left, show the new contents of the heap (in the right table) after a call to free(0x400b010) is executed. Your answers should be given as hex values. Note that the address grows from bottom up. Assume that the allocator uses immediate coalescing, that is, adjacent free blocks are merged immediately each time a block is freed. Address 0x400b028 0x00000012 Address 0x400b028 0x400b024 0x400b611c 0x400b024 0x400b611c 0x400b020 0x400b512c 0x400b020 0x400b512c 0x400b01c 0x00000012 0x400b01c 0x400b018 0x00000013 0x400b018 0x400b014 0x400b511c 0x400b014 0x400b511c 0x400b010 0x400b601c 0x400b010 0x400b601c 0x400b00c 0x00000013 0x400b00c 0x400b008 0x00000013 0x400b008 0x400b004 0x400b601c 0x400b004 0x400b601c 0x400b000 0x400b511c 0x400b000 0x400b511c 0x400affc 0x00000013 0x400affc
Related questions
Question
![Given the contents of the heap shown on the left, show the new contents of the heap (in the right table)
after a call to free(0x400b010) is executed. Your answers should be given as hex values. Note that
the address grows from bottom up. Assume that the allocator uses immediate coalescing, that is, adjacent
free blocks are merged immediately each time a block is freed.
Address
0x400b028
0x00000012
Address
0x400b028
0x400b024
0x400b611c
0x400b024
0x400b611c
0x400b020
0x400b512c
0x400b020
0x400b512c
0x400b01c
0x00000012
0x400b01c
0x400b018
0x00000013
0x400b018
0x400b014
0x400b511c
0x400b014
0x400b511c
0x400b010
0x400b601c
0x400b010
0x400b601c
0x400b00c
0x00000013
0x400b00c
0x400b008
0x00000013
0x400b008
0x400b004
0x400b601c
0x400b004
0x400b601c
0x400b000
0x400b511c
0x400b000
0x400b511c
0x400affc
0x00000013
0x400affc](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F3b25bdcc-1f5e-4716-88d3-d1e15ee2df25%2Fa7d239b5-e91b-45e2-8414-aa3ce0376da8%2Fs09b94m_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Given the contents of the heap shown on the left, show the new contents of the heap (in the right table)
after a call to free(0x400b010) is executed. Your answers should be given as hex values. Note that
the address grows from bottom up. Assume that the allocator uses immediate coalescing, that is, adjacent
free blocks are merged immediately each time a block is freed.
Address
0x400b028
0x00000012
Address
0x400b028
0x400b024
0x400b611c
0x400b024
0x400b611c
0x400b020
0x400b512c
0x400b020
0x400b512c
0x400b01c
0x00000012
0x400b01c
0x400b018
0x00000013
0x400b018
0x400b014
0x400b511c
0x400b014
0x400b511c
0x400b010
0x400b601c
0x400b010
0x400b601c
0x400b00c
0x00000013
0x400b00c
0x400b008
0x00000013
0x400b008
0x400b004
0x400b601c
0x400b004
0x400b601c
0x400b000
0x400b511c
0x400b000
0x400b511c
0x400affc
0x00000013
0x400affc
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)