VirtualBox

Changeset 3297 in kBuild


Ignore:
Timestamp:
Oct 3, 2019 6:38:20 AM (5 years ago)
Author:
bird
Message:

kmk/win: Two CONFIG_NEW_WIN_CHILDREN fixes (inverted #ifdef's), can now use all threads on systems with more than 64 (for whatever good it does).

Location:
trunk/src/kmk
Files:
2 edited

Legend:

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

    r3252 r3297  
    15201520    if (!cpus)
    15211521      cpus = 1;
    1522 #  ifdef CONFIG_NEW_WIN_CHILDREN
     1522#  ifndef CONFIG_NEW_WIN_CHILDREN
    15231523    if (cpus > 64)
    15241524      cpus = 64; /* (wait for multiple objects limit) */
  • trunk/src/kmk/w32/w32os.c

    r3173 r3297  
    4141jobserver_setup (int slots)
    4242{
     43#ifndef CONFIG_NEW_WIN_CHILDREN
    4344  /* sub_proc.c cannot wait for more than MAXIMUM_WAIT_OBJECTS objects
    4445   * and one of them is the job-server semaphore object.  Limit the
     
    5051      DB (DB_JOBS, (_("Jobserver slots limited to %d\n"), slots));
    5152    }
     53#endif
    5254
    5355  sprintf (jobserver_semaphore_name, "gmake_semaphore_%d", _getpid ());
     
    194196#else
    195197    /* Add the completed children event as the 2nd one. */
    196     handles[1] = (HANDLE)MkWinChildGetCompleteEventHandle();
     198    handles[1] = (HANDLE)MkWinChildGetCompleteEventHandle ();
    197199    if (handles[1] == NULL)
    198200      return 0;
Note: See TracChangeset for help on using the changeset viewer.

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