Commit Graph

3601 Commits

Author SHA1 Message Date
Florian Loitsch 596723f0c3 Fix return type for JoinMulticast.
Fixes #27032.

BUG= http://dartbug.com/27032
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/2220983002 .
2016-08-08 12:22:30 +02:00
Zachary Anderson 8808f853e3 Fix memory leaks in BoringSSL secure socket implementation
After running our tests with ASAN and inspecting the
BoringSSL code, it appears that the calls indicated
in the CL increment the reference count of the
objects passed in being added to the security context.
Therefore, to avoid a leak, we have to free() the
objects to decrement the reference count so that the
memory is freed when the context is destroyed.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2206233003 .
2016-08-04 10:49:51 -07:00
Florian Loitsch b8c12bc9ff Make Mac-port non-blocking.
Fixes issue #26790.

BUG= http://dartbug.com/26790
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/2211523002 .
2016-08-04 15:58:20 +02:00
Florian Loitsch ef4933df25 Better error-message when bind fails.
See #26790.

R=sgjesse@google.com

Committed: https://github.com/dart-lang/sdk/commit/34aed6a08b8547a985ac701cf3910a5f5450dd52

Reverted: https://github.com/dart-lang/sdk/commit/a1005bad7e249a5510b30683a5ca52b16baafbc4

Committed: https://github.com/dart-lang/sdk/commit/8c4954492f0593f41d270691bb82c26d8509c894

Reverted: https://github.com/dart-lang/sdk/commit/5ebcd3cda0f34be580be1a8ed816849a82691427

Committed: https://github.com/dart-lang/sdk/commit/eaeb260244d524b54d3ec842af2f8400cd543b12

Review URL: https://codereview.chromium.org/2205913003 .

Reverted: https://github.com/dart-lang/sdk/commit/90a194be3c03c058c4e087e1bd11823817982393
2016-08-04 14:45:01 +02:00
Florian Loitsch 90a194be3c Enter a description of the change.
Merge branch 'master' into revert

Revert "Better error-message when bind fails."

This reverts commit eaeb260244.

Review URL: https://codereview.chromium.org/2213533002 .
2016-08-03 23:18:39 +02:00
Florian Loitsch eaeb260244 Better error-message when bind fails.
See #26790.

R=sgjesse@google.com

Committed: https://github.com/dart-lang/sdk/commit/34aed6a08b8547a985ac701cf3910a5f5450dd52

Reverted: https://github.com/dart-lang/sdk/commit/a1005bad7e249a5510b30683a5ca52b16baafbc4

Committed: https://github.com/dart-lang/sdk/commit/8c4954492f0593f41d270691bb82c26d8509c894

Review URL: https://codereview.chromium.org/2205913003 .

Reverted: https://github.com/dart-lang/sdk/commit/5ebcd3cda0f34be580be1a8ed816849a82691427
2016-08-03 22:44:28 +02:00
Zachary Anderson 0e6f087942 Clear the error bit after reading the default trusted certs
fixes #26954

R=whesse@google.com

Review URL: https://codereview.chromium.org/2211453002 .
2016-08-03 12:24:35 -07:00
Ryan Macnak 5ebcd3cda0 Revert "Better error-message when bind fails."
This reverts commit 8c4954492f.

This change broke the Android build.

Review URL: https://codereview.chromium.org/2201183004 .
2016-08-03 09:54:57 -07:00
Florian Loitsch 8c4954492f Better error-message when bind fails.
See #26790.

R=sgjesse@google.com

Committed: https://github.com/dart-lang/sdk/commit/34aed6a08b8547a985ac701cf3910a5f5450dd52

Review URL: https://codereview.chromium.org/2205913003 .

Reverted: https://github.com/dart-lang/sdk/commit/a1005bad7e249a5510b30683a5ca52b16baafbc4
2016-08-03 16:27:48 +02:00
Florian Loitsch a1005bad7e Revert "Better error-message when bind fails."
This reverts commit 34aed6a08b.

Review URL: https://codereview.chromium.org/2210523002 .
2016-08-03 15:47:15 +02:00
Florian Loitsch 873c6e4688 Don't close stdio/stderr when shutting down.
Fixes #26872.

BUG= http://dartbug.com/26872
R=sgjesse@google.com

Review URL: https://codereview.chromium.org/2204953002 .
2016-08-03 15:30:30 +02:00
Florian Loitsch 34aed6a08b Better error-message when bind fails.
See #26790.

R=sgjesse@google.com

Review URL: https://codereview.chromium.org/2205913003 .
2016-08-03 15:29:41 +02:00
Zachary Anderson e476e00ca6 Fuchsia: Use low-level prng call, add test, update test runner.
There is now a syscall for getting cryptographically secure random bytes.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2204523002 .
2016-08-02 13:18:37 -07:00
Zachary Anderson 5c38ff4180 [GN] Add Core{Foundation,Services}.framework to libs in Mac build
The gen_snapshot binary compiles on the host and needs these two frameworks on
the link line since it uses CFRunLoop and FSEvents.

R=phosek@chromium.org, zra@google.com

Review URL: https://codereview.chromium.org/2202883002 .
2016-08-02 09:19:56 -07:00
Adam Barth 81253916a8 Fix Flutter build
Flutter now defines is_fuchsia to false, which breaks this check in this code.
The Fuchsia build seems fine without this check, so I've removed it.

TBR=zra@google.com
2016-08-01 16:50:42 -07:00
John McCutchan 9c83d24622 Add --hot-reload-rollback test mode
BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2200683002 .
2016-08-01 10:57:22 -07:00
John McCutchan 1033075c36 Fix shutdown loaders
BUG=
R=brianwilkerson@google.com

Review URL: https://codereview.chromium.org/2202593002 .
2016-08-01 09:23:45 -07:00
Zachary Anderson 31c98f0191 Fuchsia: Paralellize VM test wrapper. Update statuses for Fuchsia update
R=asiva@google.com

Review URL: https://codereview.chromium.org/2197773004 .
2016-07-29 14:20:46 -07:00
Ryan Macnak acf93a6b19 Fail cleanly if we cannot open a file to write a snapshot.
R=regis@google.com

Review URL: https://codereview.chromium.org/2193293002 .
2016-07-29 13:52:09 -07:00
Todd Turnidge e819c0e91b Fuchsia changes for my recent cl.
BUG=
R=zra@google.com

Review URL: https://codereview.chromium.org/2193313003 .
2016-07-29 12:57:17 -07:00
Todd Turnidge ac5175d47a More fixes.
BUG=

Review URL: https://codereview.chromium.org/2196593003 .
2016-07-29 12:52:31 -07:00
Todd Turnidge 71c240470d Fix build. Fix tests.
BUG=

Review URL: https://codereview.chromium.org/2194973004 .
2016-07-29 12:32:53 -07:00
Todd Turnidge 1166f83bf6 Only reload libraries when they may have been modified.
We now check all of the scripts which make up a library.  If any
script is modified, then we consider that library to be modified.  We
also consider any library which imports a modified library to be
modified.  To propagate this info efficiently, we build and discard
the imported-by graph when beginning a reload.

The embedder must provide a FileModifiedCallback in order to support
the detection of modified scripts.

In order to detect changes to package: libraries, we have modified the
embedder interface to provide the resolved url when possible, so that
we don't need to re-resolve package uris when checking for reload.
This change is incompatible and all embedders will need to be updated.

We now support a "force" flag when reloading sources.  This causes all
libraries to be reloaded regardless of whether the underlying scripts
have been updated.

Closes #26919

R=johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2186423002 .
2016-07-29 11:23:18 -07:00
Adam Barth 28b14cae16 Update to launchpad API
This API is the new way to launch processes.
2016-07-29 10:36:21 -07:00
Zachary Anderson 74bbc7f55f Fuchsia: Make some more VM tests pass
R=asiva@google.com

Review URL: https://codereview.chromium.org/2189973003 .
2016-07-29 08:07:25 -07:00
Zachary Anderson 5475ab6fbb Fuchsia: Builds run_vm_tests and a wrapper program for running it.
This CL adds rules to the GN build for building run_vm_tests for
Fuchsia. It also adds a wrapper program in
//runtime/bin/run_vm_tests_fuchsia.cc and a file containing the
output of 'run_vm_tests --list', //runtime/bin/fuchsia_vm_tests.txt.
The wrapper program and text file make it easier to run the tests
on Fuchsia, and should be able to go away once we are out of the
bootstrapping phase.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2187153003 .
2016-07-28 10:35:25 -07:00
John McCutchan a458f45a02 Enable WebSocket compression for the service protocol
BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2184793002 .
2016-07-26 15:25:05 -07:00
John McCutchan d0ebc78d68 Peturb the reload points on the reload bot
BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2183533002 .
2016-07-25 13:34:04 -07:00
Jacob Richman 96ca5db7e5 Add JSNative utility class with static methods methods to efficiently manipulate typed JSInterop objects in cases where the member name is not known statically. These methods would be extension methods on JSObject if Dart supported extension methods. Update package js to export these methods. Implement in Dart2JS. Implement JS$ in dart2js.
BUG=
R=alanknight@google.com, sra@google.com

Review URL: https://codereview.chromium.org/2150313003 .
2016-07-25 09:59:01 -07:00
Zachary Anderson b0503ad81c Fix build
Review URL: https://codereview.chromium.org/2173223002 .
2016-07-22 14:07:07 -07:00
Zachary Anderson 53374c3b99 Fuchsia: Build standalone VM. Make it run "Hello, World!".
This CL adds targets to the GN build that build the standalone Dart VM
without the observatory, and with dart:io enabled but with most of the
functionality stubbed out as UNIMPLEMENTED(). It also adds a simple
eventhandler for Fuchsia for implementing Timers.

R=asiva@google.com, johnmccutchan@google.com

Review URL: https://codereview.chromium.org/2168193002 .
2016-07-22 14:00:31 -07:00
John McCutchan 8dc35ba47e Fix Flutter mac build
BUG=

Review URL: https://codereview.chromium.org/2174503002 .
2016-07-21 14:43:34 -07:00
John McCutchan 136c3ddf47 Fix Flutter's Linux build
BUG=

Review URL: https://codereview.chromium.org/2167253003 .
2016-07-21 12:58:43 -07:00
Ryan Macnak 35f56623d4 Speculative fix for timeouts (hangs) in
language/disassmble_test
  utils/recursive_import_test
  utils/dummy_compiler_test

Also fix an ASAN warning about mismatched new/delete.

R=fschneider@google.com

Review URL: https://codereview.chromium.org/2164383002 .
2016-07-21 11:25:05 -07:00
John McCutchan c373aa760a Rate limit devfs writes
Fixes a 'too many open files' error with non-rooted Android devices

R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2172513003 .
2016-07-21 11:03:15 -07:00
Zachary Anderson 7cc544696f Remove fuchsia_test from gyp build
Review URL: https://codereview.chromium.org/2168073003 .
2016-07-21 08:48:18 -07:00
Zachary Anderson 43668b55c7 Fuchsia: Make fuchsia_test use snapshots
R=asiva@google.com

Review URL: https://codereview.chromium.org/2171453002 .
2016-07-21 08:36:14 -07:00
Zachary Anderson 760cd01571 Move root_certificates.cc reference out of io_impl_sources.gypi.
Embedders using GN that don't DEPS in //third_party/root_certificates
fail on this file during build file generation because it does not
exist. It only needs to be referenced in the gyp build of the standalone
embedder for Linux and Windows.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2156973003 .
2016-07-19 21:55:19 -07:00
John McCutchan b6e17330ed Fix DevFS on Android devices
- [x] Allow a system temporary directory to be set on Android.
- [x] This is set on Flutter's engine startup path which fixes DevFS on Android devices.

Related to https://github.com/dart-lang/sdk/issues/4413

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2156243002 .
2016-07-18 10:45:53 -07:00
Zachary Anderson b30da81483 Fuchsia: Hello, Fuchsia!
R=asiva@google.com

Review URL: https://codereview.chromium.org/2158673002 .
2016-07-18 10:35:03 -07:00
John McCutchan 1ff0f72158 Fix DevFS writes with subdirectories
- [x] Add a test case for multiple level directory DevFS write

BUG=
R=asiva@google.com

Review URL: https://codereview.chromium.org/2157013002 .
2016-07-18 08:58:40 -07:00
John McCutchan 7fa9393105 Remove windows debug print and trace shutdown on some tests
BUG=

Review URL: https://codereview.chromium.org/2153813003 .
2016-07-15 14:53:54 -07:00
John McCutchan 4bfdaa83b2 Fix Windows bots
BUG=

Review URL: https://codereview.chromium.org/2149193004 .
2016-07-15 14:34:29 -07:00
John McCutchan 1001db57c7 Attempt to trace Windows native extension tests
BUG=

Review URL: https://codereview.chromium.org/2147153006 .
2016-07-15 14:14:26 -07:00
John McCutchan 7af8d6e5a4 Strip the scheme off of uris passed into the native extension loader.
Fixes https://github.com/dart-lang/sdk/issues/26894

BUG=
R=rmacnak@google.com

Review URL: https://codereview.chromium.org/2153203002 .
2016-07-15 13:09:33 -07:00
Zachary Anderson 0fae540223 Add runtime/bin/thread_fuchsia that binds to fuchsia's pthreads
Fuchsia provides pthreads so the linux implementation almost works
except that fuchsia does not (currently) provide the clock_gettime clock
for CLOCK_THREAD_CPUTIME_ID.

Review URL: https://codereview.chromium.org/2154453002 .
2016-07-14 15:25:01 -07:00
Zachary Anderson e27b49fc80 [fuchsia] GN build support for Fuchsia OS and fuchsia_test target
This adds a GN target for the 'fuchsia_test' executable and teaches
the GN build about is_fuchsia. Key differences:

*) There's not currently a dart:io implementation for Fuchsia
*) Fuchsia's toolchain currently doesn't support (or need) ldl or lpthread
*) Fuchsia's buildconfig doesn't currently set the is_asan variable

Review URL: https://codereview.chromium.org/2149953003 .
2016-07-14 15:01:30 -07:00
John McCutchan 05c1eac65d Support loading dart-ext from within a package when using a package map
Fixes https://github.com/dart-lang/sdk/issues/26879

When a dart-ext is imported from within a package: library we need to fully resolve the package: to a file: (or whatever scheme:) so that we can locate the shared object for the extension file.

This CL sends this request through the service isolate so that the package: can be resolved even when a package config is being used.

R=asiva@google.com

Review URL: https://codereview.chromium.org/2146093002 .
2016-07-13 15:20:13 -07:00
Zachary Anderson e5102940b3 Fix 'all' target
Review URL: https://codereview.chromium.org/2151493003 .
2016-07-13 10:22:38 -07:00
Florian Schneider 11319af5a4 Add missing Loader::InitOnce to gen_snapshot
BUG=
R=zra@google.com

Review URL: https://codereview.chromium.org/2148913002 .
2016-07-13 10:14:56 -07:00