VirtualBox

Changeset 2636 in kBuild


Ignore:
Timestamp:
Sep 9, 2012 12:57:51 AM (13 years ago)
Author:
bird
Message:

kmk: experimental executable image cache for windows.

Location:
trunk/src/kmk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/Makefile.kmk

    r2548 r2636  
    131131        w32/subproc/w32err.c \
    132132        w32/compat/dirent.c \
    133         w32/pathstuff.c
     133        w32/pathstuff.c \
     134        w32/imagecache.c
    134135
    135136#
  • trunk/src/kmk/w32/subproc/sub_proc.c

    r2591 r2636  
    3535static char *make_command_line(char *shell_name, char *exec_path, char **argv);
    3636extern char *xmalloc (unsigned int);
     37#ifdef KMK
     38extern void kmk_cache_exec_image(const char *); /* imagecache.c */
     39#endif
    3740
    3841typedef struct sub_process_t {
     
    455458
    456459#ifdef KMK
    457         /* kmk performace: Don't bother looking for shell scripts in .exe files. */
     460        /* kmk performance: Don't bother looking for shell scripts in .exe files. */
    458461        exec_path_len = strlen(exec_path);
    459462        if (exec_path_len > 4
     
    461464            && !stricmp(exec_path + exec_path_len - 3, "exe")) {
    462465                exec_handle =  INVALID_HANDLE_VALUE;
     466                exec_fname[0] = '\0';
    463467        }
    464468        else {
     
    600604                        exec_path ? exec_path : "NULL",
    601605                        command_line ? command_line : "NULL"));
     606#ifdef KMK
     607                if (exec_fname[0])
     608                        kmk_cache_exec_image(exec_fname);
     609                else if (exec_path)
     610                        kmk_cache_exec_image(exec_path);
     611                else if (argv[0])
     612                        kmk_cache_exec_image(argv[0]);
     613#endif
    602614                if (CreateProcess(
    603615                        exec_path,
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