Skip to content

Revert "darwin: speed up uv_set_process_title()"#2568

Merged
bnoordhuis merged 3 commits intolibuv:v1.xfrom
bnoordhuis:fix2566
Dec 16, 2019
Merged

Revert "darwin: speed up uv_set_process_title()"#2568
bnoordhuis merged 3 commits intolibuv:v1.xfrom
bnoordhuis:fix2566

Conversation

@bnoordhuis
Copy link
Copy Markdown
Member

This reverts commit 038eacf.

It was reported that this change causes a regression when trying
to obtain the screen resolution with CGDisplayPixelsWide() or
CGDisplayPixelsHigh() after changing the process title.

This is the second time this change had to be reverted due to
regressions and, although third time is allegedly the charm,
leaving well enough alone is the proverb I plan to adhere to...

Fixes: #2566

CI: https://ci.nodejs.org/job/libuv-test-commit/1657/

Copy link
Copy Markdown
Contributor

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Argh, the test is still failing on one of the CI macs though :-/

@bnoordhuis
Copy link
Copy Markdown
Member Author

Let's see what halving the iteration count does: https://ci.nodejs.org/job/libuv-test-commit/1659/

@cjihrig
Copy link
Copy Markdown
Contributor

cjihrig commented Dec 9, 2019

mac CI is green!

Copy link
Copy Markdown
Contributor

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

This reverts commit bee1bf5.

This is necessary in order to be able to revert commit 038eacf
("darwin: speed up uv_set_process_title()") from October.

PR-URL: libuv#2568
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
This reverts commit 038eacf.

It was reported that this change causes a regression when trying
to obtain the screen resolution with `CGDisplayPixelsWide()` or
`CGDisplayPixelsHigh()` after changing the process title.

This is the second time this change had to be reverted due to
regressions and, although third time is allegedly the charm,
leaving well enough alone is the proverb I plan to adhere to...

Fixes: libuv#2566
PR-URL: libuv#2568
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Stop dlsym-ing the symbol name at run-time, that was only necessary to
support macOS and iOS versions that were already near-obsolete when this
feature was introduced in August 2013.

This reapplies commit bee1bf5 from October.

PR-URL: libuv#2568
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
@bnoordhuis bnoordhuis merged commit d077d06 into libuv:v1.x Dec 16, 2019
@bnoordhuis bnoordhuis deleted the fix2566 branch December 16, 2019 14:23
@bnoordhuis
Copy link
Copy Markdown
Member Author

Thanks all for reviewing, landed in f0923d0...d077d06.

liujinye-sys pushed a commit to open-vela/apps_system_libuv that referenced this pull request Jul 23, 2025
This reverts commit bee1bf5.

This is necessary in order to be able to revert commit 038eacf
("darwin: speed up uv_set_process_title()") from October.

PR-URL: libuv/libuv#2568
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
liujinye-sys pushed a commit to open-vela/apps_system_libuv that referenced this pull request Jul 23, 2025
This reverts commit 038eacf.

It was reported that this change causes a regression when trying
to obtain the screen resolution with `CGDisplayPixelsWide()` or
`CGDisplayPixelsHigh()` after changing the process title.

This is the second time this change had to be reverted due to
regressions and, although third time is allegedly the charm,
leaving well enough alone is the proverb I plan to adhere to...

Fixes: libuv/libuv#2566
PR-URL: libuv/libuv#2568
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
liujinye-sys pushed a commit to open-vela/apps_system_libuv that referenced this pull request Jul 23, 2025
Stop dlsym-ing the symbol name at run-time, that was only necessary to
support macOS and iOS versions that were already near-obsolete when this
feature was introduced in August 2013.

This reapplies commit bee1bf5 from October.

PR-URL: libuv/libuv#2568
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
liujinye-sys pushed a commit to open-vela/apps_system_libuv that referenced this pull request Dec 16, 2025
This reverts commit bee1bf5.

This is necessary in order to be able to revert commit 038eacf
("darwin: speed up uv_set_process_title()") from October.

PR-URL: libuv/libuv#2568
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
liujinye-sys pushed a commit to open-vela/apps_system_libuv that referenced this pull request Dec 16, 2025
This reverts commit 038eacf.

It was reported that this change causes a regression when trying
to obtain the screen resolution with `CGDisplayPixelsWide()` or
`CGDisplayPixelsHigh()` after changing the process title.

This is the second time this change had to be reverted due to
regressions and, although third time is allegedly the charm,
leaving well enough alone is the proverb I plan to adhere to...

Fixes: libuv/libuv#2566
PR-URL: libuv/libuv#2568
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
liujinye-sys pushed a commit to open-vela/apps_system_libuv that referenced this pull request Dec 16, 2025
Stop dlsym-ing the symbol name at run-time, that was only necessary to
support macOS and iOS versions that were already near-obsolete when this
feature was introduced in August 2013.

This reapplies commit bee1bf5 from October.

PR-URL: libuv/libuv#2568
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

darwin: cannot get window size after get/set proc title

4 participants