VirtualBox

Changeset 2753 in kBuild for trunk/src/kmk/remake.c


Ignore:
Timestamp:
Jan 23, 2015 9:46:30 PM (10 years ago)
Author:
bird
Message:

kmk: Save 20+ MB of memory for chopped receipt command lines by freeing them after we're done evaluating a target.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/remake.c

    r2743 r2753  
    13291329    file->update_status = 0;
    13301330#endif
     1331
     1332#ifdef KMK
     1333    /* We're done with this command, so free the memory held by the chopped
     1334       command lines. Saves heap for the compilers & linkers. */
     1335    if (file->cmds && file->cmds->command_lines)
     1336      free_chopped_commands (file->cmds);
     1337#endif
    13311338}
    13321339
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette