Title: [270753] trunk/Source/_javascript_Core
- Revision
- 270753
- Author
- [email protected]
- Date
- 2020-12-13 15:59:24 -0800 (Sun, 13 Dec 2020)
Log Message
[JSC] Set s_maxPathLength fallback when OS does not have a PATH_MAX limitation
https://bugs.webkit.org/show_bug.cgi?id=219571
Patch by Samuel Thibault <[email protected]> on 2020-12-13
Reviewed by Yusuke Suzuki.
* runtime/ConfigFile.h:
(ConfigFile::s_maxPathLength): Fallback to 4095 when PATH_MAX is not defined.
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (270752 => 270753)
--- trunk/Source/_javascript_Core/ChangeLog 2020-12-13 23:42:09 UTC (rev 270752)
+++ trunk/Source/_javascript_Core/ChangeLog 2020-12-13 23:59:24 UTC (rev 270753)
@@ -1,3 +1,13 @@
+2020-12-13 Samuel Thibault <[email protected]>
+
+ [JSC] Set s_maxPathLength fallback when OS does not have a PATH_MAX limitation
+ https://bugs.webkit.org/show_bug.cgi?id=219571
+
+ Reviewed by Yusuke Suzuki.
+
+ * runtime/ConfigFile.h:
+ (ConfigFile::s_maxPathLength): Fallback to 4095 when PATH_MAX is not defined.
+
2020-12-11 Tadeu Zagallo <[email protected]>
REGRESSION (r270665): testapi failing on JSC bots
Modified: trunk/Source/_javascript_Core/runtime/ConfigFile.h (270752 => 270753)
--- trunk/Source/_javascript_Core/runtime/ConfigFile.h 2020-12-13 23:42:09 UTC (rev 270752)
+++ trunk/Source/_javascript_Core/runtime/ConfigFile.h 2020-12-13 23:59:24 UTC (rev 270753)
@@ -42,8 +42,10 @@
#if OS(WINDOWS)
static const size_t s_maxPathLength = 260; // Windows value for "MAX_PATH"
+#elif defined(PATH_MAX)
+ static const size_t s_maxPathLength = PATH_MAX;
#else
- static const size_t s_maxPathLength = PATH_MAX;
+ static const size_t s_maxPathLength = 4095;
#endif
static char s_processName[];
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes