Lines Matching refs:new_brk
1998 Addr new_brk = ARG1;
2004 if (new_brk == 0) {
2011 if (new_brk == old_brk_limit) {
2015 if (new_brk < VG_(brk_base)) {
2020 if (new_brk - VG_(brk_base) > VG_(client_rlimit_data).rlim_cur) {
2043 if (new_brk < old_brk_limit) {
2047 /* Calculate new local brk (=MAX(new_brk, old_brk_base_pgup)). */
2049 if (new_brk < old_brk_base_pgup)
2052 new_brk_local = new_brk;
2079 if (new_brk < old_brk_base_pgup) {
2089 seg = VG_(am_find_nsegment)(new_brk);
2097 VG_(discard_translations)(new_brk, old_brk_local - new_brk,
2100 VG_(memset)((void*)new_brk, 0, old_brk_local - new_brk);
2105 VG_(brk_limit) = new_brk;
2106 VG_TRACK(die_mem_brk, new_brk, old_brk_limit - new_brk);
2115 /* Calculate new local brk (=MIN(new_brk, old_brk_base_pgup)). */
2117 if (new_brk < old_brk_base_pgup)
2118 new_brk_local = new_brk;
2133 if (new_brk > old_brk_base_pgup) {
2156 if (new_brk <= seg2->start) {
2161 Addr resvn_start = VG_PGROUNDUP(new_brk);
2178 "grow to %#lx\n", tid, new_brk);
2192 "thread #%d to %#lx\n", tid, new_brk);
2199 seg2 = VG_(am_find_nsegment)(VG_PGROUNDUP(new_brk) - 1);
2203 vg_assert(new_brk <= seg->end + 1);
2209 VG_(brk_limit) = new_brk;
2210 VG_TRACK(new_mem_brk, old_brk_limit, new_brk - old_brk_limit, tid);